﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Trade.Controls
{
    public partial class RayForm : Form
    {
        public RayForm()
        {
            InitializeComponent();
        }

        //回车时发送Tab焦点转到下一控件
        protected override bool ProcessDialogKey(Keys keyData)
        {
            if (keyData == Keys.Enter && (this.ActiveControl is TextBox || this.ActiveControl is ComboBox))
            {
                keyData = Keys.Tab;
            }
            return base.ProcessDialogKey(keyData);
        }
    }
}
